﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace AnimalWars2
{
    public static class GameUtilities
    {
        public static void DrawString(SpriteFont font, SpriteBatch spriteBatch, String str, int x, int y)
        {
            spriteBatch.DrawString(font, str,
              new Vector2(x, y),
              new Color(1.0f, 1.0f, 1.0f, 1.0f),
              0.0f,
              new Vector2(0.0f, 0.0f),
              new Vector2(1.0f, 1.0f),
              SpriteEffects.None,
              0.6f);
        }

        public static VisualizationMode InvertVisualizationMode(VisualizationMode visualizationMode)
        {
            return visualizationMode == VisualizationMode.Top ? VisualizationMode.Perspective : VisualizationMode.Top;
        }
    }

    public static class UpperPlayer
    {
        public static Keys MoveLeft = Keys.A;
        public static Keys MoveRight = Keys.D;
        public static Keys Action = Keys.Space;
    }

    public static class LowerPlayer
    {
        public static Keys MoveLeft = Keys.Left;
        public static Keys MoveRight = Keys.Right;
        public static Keys Action = Keys.Enter;
    }
}
